//package com.mt.vsphere.business.vshpereApi;
//
//import com.vmware.connection.BasicConnection;
//import com.vmware.general.GetHostName;
//
//import javax.net.ssl.HostnameVerifier;
//import javax.net.ssl.HttpsURLConnection;
//
//import static com.vmware.sso.client.utils.Utils.trustAllHttpsCertificates;
//
//
//public class CenterApi {
//    public static void main(String[] args) throws Exception {
//        GetHostName getHostName = new GetHostName();
//        BasicConnection basicConnection = new BasicConnection();
////        "https://192.168.121.133/sdk", "root", "zYz1098626303."
//        basicConnection.setUrl("https://192.168.1.249/sdk");
//        basicConnection.setUsername("vsphere.local\\administrator");
//        basicConnection.setPassword("Mt201988.");
//        HostnameVerifier hv = (urlHostName, session) -> true;
//        trustAllHttpsCertificates();
//
//        HttpsURLConnection.setDefaultHostnameVerifier(hv);
//
//        getHostName.setConnection(basicConnection);
//        getHostName.connect();
//
//        getHostName.printHostProductDetails();
//       /* List<ManagedObjectReference> allDatacenter = getAllDatacenter();
//        for (ManagedObjectReference dataCenter : allDatacenter) {
//            System.out.println(dataCenter.getType());
//        }*/
//    }
//
//
//}
